const addressesDao = require('../dao/addressesDao')

// 查询
module.exports.findAll = async function () {
    return await addressesDao.findAll();
}
// 查询通过userId
module.exports.findByuser = async function (userId) {
    return await addressesDao.findByuser(userId);
}
// 删除
module.exports.delete = async function (id) {
    return await addressesDao.delete(id);
}

// 修改
module.exports.update = async function (id, matching) {
    return await addressesDao.update(id, matching);
}

// 增加
module.exports.insert = async function (matching) {
    return await addressesDao.insert(matching);
}